//
// Int16.cpp for  in /home/lund/Projets/abstract-vm/vmtmp
// 
// Made by florian dewulf
// Login   <dewulf_f@epitech.net>
// 
// Started on  Mon Feb 18 11:02:55 2013 florian dewulf
// Last update Tue Feb 19 21:37:58 2013 kevin lansel
//

#include	"Int16.hpp"

Int16::Int16(const short &value, const std::string &str) : AOperand(value, str), _value(value)
{
}

Int16::Int16(const Int16 &other) : _value(other.getValue())
{
}

Int16::~Int16()
{
}

Int16		&Int16::operator=(const Int16 &other)
{
  this->_value = other.getValue();
  return (*this);
}

short		Int16::getSize() const
{
  return (this->_value);
}

void		Int16::setSize(const short &size)
{
  this->_value = size;
}

eOperandType    Int16::getType() const
{
  return (INT16);
}
